package com.neusoft.yiyang.auth.client;

import com.neusoft.yiyang.common.entity.user.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "user-service")
public interface UserClient {

    // 通过用户名获取用户详情
    @GetMapping("/users/username/{username}")
    User getUserByUsername(@PathVariable("username") String username);

}
